package com.elock.service;

import java.util.List;
import java.util.Map;

import com.elock.base.core.Page;
import com.elock.base.core.Pageable;
import com.elock.base.core.service.BaseService;
import com.elock.entity.Car;

/**
 * 车辆
 * @author 仁德
 */
public interface CarService extends BaseService<Car> {

	public void saveUpdate(Car car, Long saleOrgId, Long[] elockId, Integer[] berth,
			String[] position);

	public Page<Map<String, Object>> findPage(String carNumber, String carType,
			Long saleOrgId, Pageable pageable);

	public List<Map<String, Object>> findElockCarByCarId(Long carId);

	public Car findByCarNumber(String carNumber);

	public Page<Map<String, Object>> findElockCar(String carNumber, String carType,
			String elockNum, String elockName, Pageable pageable);

	public Page<Map<String, Object>> findCarMonitorPage(String carNumber,
			String elockNumber, Long saleOrgId, String startTime, String endTime,
			Pageable pageable);

	public Integer countCarMonitor(String carNumber, String elockNumber, Long saleOrgId,
			String startTime, String endTime, Pageable pageable, Integer page,
			Integer size);

	public List<Map<String, Object>> findCarMonitorList(String carNumber,
			String elockNumber, Long saleOrgId, String startTime, String endTime,
			Pageable pageable, Integer page, Integer size);

	public List<Map<String, Object>> findByTerminalId(Long terminalId);
}
